class IntegralDetailVo {

  IntegralDetailData? data;

  IntegralDetailVo({this.data});

  IntegralDetailVo.fromJson(Map<String, dynamic> json) {
    data = json['data'] != null ? new IntegralDetailData.fromJson(json['data']) : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    if (this.data != null) {
      data['data'] = this.data!.toJson();
    }
    return data;
  }
}

class IntegralDetailData {
  int? id;
  String? typeStr;
  int? type;
  String? integral;
  int? operator;
  String? createdAt;
  List<Orders>? orders;

  IntegralDetailData(
      {this.id,
      this.typeStr,
      this.type,
      this.integral,
      this.operator,
      this.createdAt,
      this.orders});

  IntegralDetailData.fromJson(Map<String, dynamic> json) {
    id = json['id'];
    typeStr = json['type_str'];
    type = json['type'];
    integral = json['integral'];
    operator = json['operator'];
    createdAt = json['created_at'];
    if (json['orders'] != null) {
      orders = <Orders>[];
      json['orders'].forEach((v) {
        orders!.add(new Orders.fromJson(v));
      });
    }
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['id'] = this.id;
    data['type_str'] = this.typeStr;
    data['type'] = this.type;
    data['integral'] = this.integral;
    data['operator'] = this.operator;
    data['created_at'] = this.createdAt;
    if (this.orders != null) {
      data['orders'] = this.orders!.map((v) => v.toJson()).toList();
    }
    return data;
  }
}

class Orders {
  String? label;
  String? value;

  Orders({this.label, this.value});

  Orders.fromJson(Map<String, dynamic> json) {
    label = json['label'];
    value = json['value'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = new Map<String, dynamic>();
    data['label'] = this.label;
    data['value'] = this.value;
    return data;
  }
}
